package com.song.mvc.controller;

import com.song.mvc.model.UserInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: HelloController：类描述
 * @author: songzhangyong
 * @Date: 2019/11/26 11:23
 */

@Controller
@RequestMapping("/anno/song")
@ResponseBody
public class HelloControllerAnno {


	@GetMapping("/hello")
	public String getHello(String name , UserInfo userInfo ,HttpServletRequest request){
		return "HelloController ... " ;
	}

	@PostMapping("/hello")
	public String postHello(String name , UserInfo userInfo ,HttpServletRequest request){
		return "HelloController ... " ;
	}

	@GetMapping("/hello/{id}")
	public String getHelloId(@PathVariable("id") String id , String name , UserInfo userInfo , HttpServletRequest request){
		return "HelloController ... " ;
	}


}
